import {dateFormat} from "../../util/date";

export const acceptFormOption = {
    submitBtn:true,
    emptyBtn:false,
    dialogClickModal: false,
    labelWidth: 150,
    column: [
        {
            label: "办件编码",
            prop: "projectNo",
            span: 24,
            readonly:true
        },
        {
            label: "承诺时限",
            prop: "promiseVal",
            span: 24,
            readonly:true
        },
        {
            label: "环节名称",
            prop: "processName",
            span: 24,
            value:"受理",
            readonly:true
        },
        {
            type: 'datetime',
            label: '受理时间',
            span: 24,
            display: false,
            prop: 'acceptDate',
            readonly:true,
            value: dateFormat(new Date(),"yyyy-MM-dd hh:mm:ss"),
        },
        {
            label: '受理结果',
            span: 24,
            type: 'radio',
            display: true,
            prop: 'acceptResultCode',
            dicData:[
                {
                    label: '告知承诺受理',
                    value: '14'
                },
                {
                    label: '容缺受理',
                    value: '5'
                },
                {
                    label: '予以受理',
                    value: '2'
                },
                {
                    label: '补齐补正',
                    value: '6'
                },
                {
                    label: '不予受理',
                    value: '7'
                },
            ],
            rules: [{
                required: true,
                message: "请选择受理结果",
                trigger: "blur"
            }]
        },
        {
            label: '个人意见',
            span: 24,
            prop: 'personalOpinion',
            formslot: true,
        },
        {
            display: false,
            label: '受理意见',
            span: 24,
            type: 'textarea',
            prop: 'remark',
            rules: [{
                required: true,
                message: "请输入受理意见",
                trigger: "blur"
            }]
        },
    ]
};

export const acceptCrudOption = {
    submitBtn:true,
    emptyBtn:false,
    dialogClickModal: false,
    column: [
        {
            label: "办件编码",
            prop: "projectNo",
            span: 24,
            readonly:true
        },
        {
            label: "承诺时限",
            prop: "promiseVal",
            span: 24,
            readonly:true
        },
        {
            label: "环节名称",
            prop: "processName",
            span: 24,
            value:"受理",
            readonly:true
        },
        {
            type: 'datetime',
            label: '受理时间',
            span: 24,
            display: false,
            prop: 'acceptDate',
            readonly:true,
            value: dateFormat(new Date(),"yyyy-MM-dd hh:mm:ss"),
        },
        {
            label: '受理结果',
            span: 24,
            type: 'radio',
            display: true,
            prop: 'acceptResultCode',
            dicData:[
                {
                    label: '告知承诺受理',
                    value: '14'
                },
                {
                    label: '容缺受理',
                    value: '5'
                },
                {
                    label: '予以受理',
                    value: '2'
                },
                {
                    label: '补齐补正',
                    value: '6'
                },
                {
                    label: '不予受理',
                    value: '7'
                },
            ],
            rules: [{
                required: true,
                message: "请选择受理结果",
                trigger: "blur"
            }]
        },{
            label: '受理意见',
            span: 24,
            type: 'textarea',
            prop: 'remark',
            rules: [{
                required: true,
                message: "请输入受理意见",
                trigger: "blur"
            }]
        },
    ]
};